﻿using Core.Migrations.Extensions;
using FluentMigrator;

namespace BP.Plugin.Monitor.Infrastructure.Persistence.Migrations.OnlineUsers;

[Migration(202511082233)]
public class AddColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table("OnlineUsers")
              .InSchema(SchemaNames.Monitor)
              .AddColumn("IsKicked").AsBoolean().Nullable().WithColumnDescription("踢人下线")
              .AddColumn("KickedByUserName").AsString(100).Nullable().WithColumnDescription("踢人用户")
              .AddColumn("KickedAt").AsDateTimeOffset().Nullable().WithColumnDescription("踢人下线时间");
    }
}
